package com.woniu.command.handler;

import com.woniu.adapter.MaterialAppAdapter;
import com.woniu.outlet.po.MaterialApplication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MatCommandHandler {
    @Autowired
    private MaterialAppAdapter materialAppAdapter;

    public void addMaterialApplication(MaterialApplication materialApplication){
        materialAppAdapter.addMaterialApplication(materialApplication);
    }

    public void updateMaterialApplication(MaterialApplication materialApplication){
        materialAppAdapter.updateMaterialApplication(materialApplication);
    }

    public void delMaterialApplication(Integer id){
        materialAppAdapter.deleteMaterialApplication(id);
    }

    public void receive (String s) {
        materialAppAdapter.receive(s);
    }

    public void ready (String s) {
        materialAppAdapter.ready(s);
    }
}
